package com.zx.feign.config;

import com.zx.feign.interceptor.FeignRequestInterceptor;
import feign.RequestInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * description: Feign客户端配置类，用于处理请求和响应的加密解密 <br>
 * create: 2025-10-12
 * </p>
 *
 * @author zhou  xun
 */
@Slf4j
@Configuration
public class FeignConfig {

    /**
     * 请求拦截器，用于传递认证信息
     *
     * @return RequestInterceptor
     */
    @Bean
    public RequestInterceptor jwtFeignRequestInterceptor() {
        return new FeignRequestInterceptor();
    }

}